<?php if (count($bids) == 0):?>
    No record<br />
<?php else: ?>
    <table border="1">
      <thead>
        <tr>
          <th>ID</th>
          <th>Product ID</th>
          <th>Product Name</th>
          <th>User</th>
          <th>Price</th>
        <tr>
      </thead>
      <tbody>
        <?php foreach ($bids as $bid): ?>
          <tr>
            <td><?php echo $bid->getID(); ?></td>
            <td><?php echo $bid->getProductID(); ?></td>
            <td><?php echo $bid->getProduct()->getName(); ?></td>
            <td><?php echo $bid->getCreator()->getUserName(); ?></td>
            <td><?php echo $bid->getPrice(); ?></td>
          </tr>
        <?php endforeach; ?>
      </tbody>
    </table>
<?php endif; ?>
<hr />
<?php echo link_to("Back to list", "homepage");?>
